WARNING: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: Code indented twice inside a nested loop runs for the number of times the first loop runs multiplied by the number of times the second loop runs.

  • We want our sprites to be in a grid! Unindent this line of code once y·-=·110 so it runs only 4 times.
  • Click Run to see sprites form a grid! When finished, click Submit and Next.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)